<template>
  <div @click="detail('article')">
    <van-nav-bar
      title="金沙雅苑(二期)"
      left-text=""
      left-arrow
      @click-left="onClickLeft"
    />
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
          <van-swipe-item>&nbsp;</van-swipe-item>
    </van-swipe>
    <van-divider>文字</van-divider>
    <van-grid :column-num="3">
      <van-grid-item
        v-for="value in 3"
        :key="value"
        icon="photo-o"
        text="文字"
      />
    </van-grid>
    <van-divider>文字</van-divider>
    <van-divider>文字</van-divider>
    <div class="collection">
      <ul>
        <li><van-button icon="star-o" block> 收藏 </van-button></li>
        <li><van-button type="default" block>在线咨询</van-button></li>
        <li><van-button type="primary" block>电话预约</van-button></li>
      </ul>
    </div>
  </div>
</template>

<script>
import { Toast } from 'vant'
export default {
  name: 'ArticleDetailPage',
  methods: {
    detail(path) {
      this.$router.push(
        {
          name: path,
        },
        () => {}
      )
    },
    onClickLeft() {
      Toast('返回')
    },
  },
}
</script>

<style lang="less" scoped>
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  line-height: 250px;
  text-align: center;
  background-color: #39a9ed;
}
.collection {
  z-index: 9999;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  ul {
    display: flex;
    justify-content: space-between;
    li{
      width: 100%;
      color: #e1e1e1;
    }
  }
}
</style>
